package cmd

import (
	"fmt"
	"time"
	"homework5/mycommand/myCobra"
)

var (
	timeCmd = &myCobra.Command{
		Use:   "time",
		Short: "get current time",
		Long: `sub command of mycode, return current time`,
		Run: func(cmd *myCobra.Command, args []string) {
			// Do Stuff Here
			fmt.Println(time.Now().Format("2006-01-02"))
		},
	}
)